'use strict'

const Foundation = require('../service/foundation')

exports.user = async function(ctx, next) {
    // const token = ctx.get('token')
    // const res = await Foundation.tokenVerify(token)
    const token = 'ba5099c1b1b14fa42016e2468ff297b38808fd9ca4e31e1930b6b2b27b415bb7'

    ctx.state.member = {
        userId: 1,
        token: token
    }

    await next()
}